package command.light;

import command.Command;
import command.light.Light;

/**
 * Created by lenovo on 2018/1/2.
 */
public class LightOnCommand implements Command {
    Light light;

    public LightOnCommand(Light light){
        this.light=light;
    }
    @Override
    public void execute() {

        light.on();
    }

    @Override
    public void undo() {
        light.off();
    }
}
